<?php

class ProductItem {

    var $ProductID;

    public function getProductID() {
        return $this->ProductID;
    }

    var $ProductName;

    public function getProductName() {
        return $this->ProductName;
    }

    var $ProductPrice;

    public function getProductPrice() {
        return $this->ProductPrice;
    }

    var $Quantity;

    public function getQuantity() {
        return $this->Quantity;
    }

    public function setQuantity($value) {
        $this->Quantity = $value;
    }

    var $Sum;

    public function getSum() {
        return $this->Sum;
    }

    public function setSum($value) {
        $this->Sum = $value;
    }

    public function __construct($pProductID, $pProductName, $pQuantity, $pProductPrice) {
        $this->ProductID = $pProductID;
        $this->ProductName = $pProductName;
        $this->ProductPrice = $pProductPrice;
        $this->Quantity = $pQuantity;
        $this->Sum = $this->ProductPrice * $this -> Quantity;
    }

}

?>